package com.xiaoKe.zhonghzu.global.base;


import android.graphics.drawable.ColorDrawable;

import com.xiaoKe.zhonghzu.R;
import com.xiaoKe.zhonghzu.databinding.ActivityFragmentContainerBinding;

public class FragmentContainerActivity extends BaseActivity<ActivityFragmentContainerBinding> {
    @Override
    protected void initView() {

        try {
            BaseFragment baseFragment = (BaseFragment) Class.forName(getIntent().getStringExtra("className")).newInstance();
            baseFragment.setArguments(getIntent().getExtras());
            getSupportFragmentManager().beginTransaction().replace(R.id.core_fl_container, baseFragment).commitAllowingStateLoss();
        } catch (Exception e) {
            e.printStackTrace();
            finish();
        }
    }

    @Override
    protected void initData() {

    }
}